from pydantic import BaseModel


class User(BaseModel):
    name: str = ''
    message: str = ''


class UserCreate(BaseModel):
    name: str = ''
    email: str = ''
    age: int = 0
    is_subscribed: bool = False


class Product(BaseModel):
    product_id: int = 0
    name: str = ''
    category: str = ''
    price: float = 0


class UserCookie(BaseModel):
    username: str = ''
    password: str = ''